package com.lmk.homeWork;

public class Circle {
    double radio;
    double pi=3.14159;
    public double findArea(){
        double c=radio*radio*pi;
        return c;
    }
    public void printAreas(Circle c,int time){
        System.out.println("半径为"+"\t\t"+"面积为");
        for (int i = 1; i <=time ; i++) {
            c.radio=i;
            System.out.println(c.radio+"\t\t"+c.findArea());
        }
        c.radio+=1;
    }

    public static void main(String[] args) {
        Circle c=new Circle();

        c.printAreas(c,5);
        System.out.println("当前半径为"+c.radio);
    }
}
